package com.example.demo.repository;

import java.util.Date;

import org.springframework.stereotype.Repository;

import com.example.demo.custom.BaseRepository;
import com.example.demo.entity.AfterSaleTargetZ1;
import com.example.demo.entity.AfterSaleTargetZ2;
import com.example.demo.entity.SysUser;

@Repository
public interface AfterSaleTargetZ1Repository extends BaseRepository<AfterSaleTargetZ1, Integer>{

	AfterSaleTargetZ1 findByDateAndUser(Date date, SysUser myUser);

	AfterSaleTargetZ1 findByUserIdAndDate(Integer userId, Date date);

	AfterSaleTargetZ1 findByUser(SysUser user);

}
